package com.qlslylq.ad.sdk.net;

import java.io.Serializable;
import java.util.LinkedHashMap;

/**
 * 响应模型(JO)<br/>
 */
public class ResponseObject<T> extends ResponseBase implements Serializable {

    public T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String toString() {
        LinkedHashMap<String, Object> map = new LinkedHashMap<>();
        map.put("code", code);
        map.put("error", error);
        map.put("message", message);
        map.put("data", data);
        return map.toString();
    }
}